<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.*" %>
<%@page import="model.KostumBean" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Review Data Kostum</title>
    </head>
    <body>
        <a href="<%=request.getContextPath()%>/entrikostum.jsp">Kembali</a>
        <br></br>
        <table width="100%" border="1" bordercolor="#CC33FF">
            <tr>
                <th width="9%">ID Kostum</th>
                <th width="23%">Nama Kostum</th>
                <th width="19%">Harga</th>
                <th width="16%">Kategori</th>
                <th width="16%">Gambar</th>
                <th width="17%"></th>
            </tr>
            <%
                List list = (List) request.getAttribute("list");
                if (list != null) {
                    for (int i = 0; i < list.size(); i++) {
                        KostumBean kbean = (KostumBean) list.get(i);

            %>
            <tr>
                <td height="28"><%=kbean.getID_Kostum()%></td>
                <td><%=kbean.getNamaKostum()%></td>
                <td><%=kbean.getHarga()%></td>
                <td><%=kbean.getKategori()%></td>
                <td><%=kbean.getGambar()%></td>
                <td>
                    <a href="KostumServlet?Simpan=Edit&ID_Kostum=<%=kbean.getID_Kostum()%>">Update</a>
                    |
                    <a href="KostumServlet?Simpan=Delete&ID_Kostum=<%=kbean.getID_Kostum()%>">Delete</a>
                    
                </td>
            </tr>
            <%
                    }
                }
            %>
        </table>

        <br></br>
        <form action="dashboard.jsp" method="post">
            <input type="submit" value="Kembali ke Dashboard">
        </form>
    </body>
</html>